// 顶级渠道编码
export const TOP_CHANNELS = [
  {
    id: 'JDDJ',
    name: '京东到家',
  },
  {
    id: 'MTWM',
    name: '美团外卖',
  },
  {
    id: 'NEB',
    name: '饿了么',
  },
];

// 自定义http状态码 - 取消http请求
export const CANCEL_HTTP_STATUS = 1001;

/**
 * 任务状态枚举
 */
export const TaskStatusEnum = {
  INIT: 'INIT',
  PROCESSED: 'PROCESSED',
  SUCCESS: 'SUCCESS',
  FAILURE: 'FAILURE',
  CANCEL: 'CANCEL',
};

/**
 * 处理类型枚举
 */
export const HandleTypeEnum = {
  MAN: '人工',
  SYS: '系统',
};

/**
 * 任务状态
 */
export const TASK_STATUS = [
  {
    id: TaskStatusEnum.INIT,
    name: '待处理',
  },
  {
    id: TaskStatusEnum.PROCESSED,
    name: '处理中',
  },
  {
    id: TaskStatusEnum.SUCCESS,
    name: '处理成功',
  },
  {
    id: TaskStatusEnum.FAILURE,
    name: '处理失败',
  },
  {
    id: TaskStatusEnum.CANCEL,
    name: '取消',
  },
];

export const CELLULAR_CLASSIFY_LIST = [
  {
    id: 'A',
    label: '中子星',
  },
  {
    id: 'B',
    label: '双子星',
  },
  {
    id: 'C',
    label: '亮剑店',
  },
  {
    id: 'D',
    label: '组合星',
  },
];

export const CELLULAR_PRIORITY_LIST = [
  {
    key: 'A',
    value: 'A类蜂窝',
  },
  {
    key: 'B',
    value: 'B类蜂窝',
  },
  {
    key: 'C',
    value: 'C类蜂窝',
  },
  {
    key: 'D',
    value: 'D类蜂窝',
  },
];

// 省市列表缓存
export const REGION_CITY_STORAGE_KEY = 'REGION_CITY_LOCAL_STORAGE_KEY';

// 调价商品详情/调价商品复核列表-筛选数据字段下拉列表
export const ORDER_BY_FIELD_LIST = [
  {
    id: 'cellularSales',
    name: '蜂窝总月售',
  },
  {
    id: 'diffChannelActivityPrice',
    name: '建议原价-建议特价',
  },
  {
    id: 'diffActivityCompetePrice',
    name: '建议特价-竞对最低特价',
  },
  {
    id: 'diffActivityAverageStrike',
    name: '建议特价-近30天成交均价',
  },
  {
    id: 'diffChannelPrice',
    name: '建议原价-渠道价',
  },
  {
    id: 'diffChannelRetailPrice',
    name: '建议原价-零售价',
  },
];

// 调价审核管理/调价商品复核列表：商品表格表头全字段
export const BATCHING_ADUIT_LIST = [
  {
    prop: 'strategyCode',
    label: '策略ID',
    disabled: true,
    minWidth: '160',
    showTooltip: true,
  },
  {
    prop: 'channelCode',
    label: '渠道编码',
    disabled: true,
    minWidth: '100',
    showTooltip: true,
  },
  {
    prop: 'goodsName',
    label: '商品名称',
    disabled: true,
    minWidth: '150',
    showTooltip: true,
  },
  {
    prop: 'newChannelPrice',
    label: '建议原价',
    disabled: true,
  },
  {
    prop: 'newActivityPrice',
    label: '建议特价',
    disabled: true,
  },
  {
    prop: 'auditChannelPrice',
    label: '确认原价',
    minWidth: '100',
    disabled: true,
    isEdit: true,
  },
  {
    prop: 'auditActivityPrice',
    label: '确认特价',
    minWidth: '100',
    disabled: true,
    isEdit: true,
  },
  {
    prop: 'cellularSales',
    label: '蜂窝总月售',
    disabled: true,
  },
  {
    prop: 'diffChannelActivityPrice',
    label: '建议原价-建议特价',
    minWidth: '105',
    disabled: true,
  },
  {
    prop: 'diffActivityCompetePrice',
    label: '建议特价-竞对最低特价',
    minWidth: '110',
    disabled: true,
  },
  {
    prop: 'diffActivityAverageStrike',
    label: '建议特价-近30天成交均价',
    minWidth: '115',
    disabled: true,
  },
  {
    prop: 'diffChannelPrice',
    label: '建议原价-渠道价',
    minWidth: '105',
    disabled: true,
  },
  {
    prop: 'diffChannelRetailPrice',
    label: '建议原价-零售价',
    minWidth: '105',
    disabled: true,
  },
  {
    prop: 'limit',
    label: '限购规则',
    disabled: true,
  },
  {
    prop: 'auditLimitFrequency',
    label: '限购频率',
    minWidth: '100',
    disabled: true,
    isEdit: true,
  },
  {
    prop: 'auditLimitNum',
    label: '限购数量',
    minWidth: '100',
    disabled: true,
    isEdit: true,
  },
  {
    prop: 'auditActivityPriceLimit',
    label: '特价限购',
    minWidth: '100',
    disabled: true,
    isEdit: true,
  },
  {
    prop: 'competeActivityPrice',
    label: '竞对特价最低价',
  },
  {
    prop: 'competeChannelPrice',
    label: '竞对特价最低的原价',
    minWidth: '100',
  },
  {
    prop: 'competeStoreName',
    label: '竞对特价最低价门店',
    minWidth: '100',
    showTooltip: true,
  },
  {
    prop: 'maxSalesActivityPrice',
    label: '竞对最高销量特价',
  },
  {
    prop: 'maxSalesStoreName',
    label: '竞对特价最高销量门店',
    minWidth: '100',
    showTooltip: true,
  },
  {
    prop: 'lastAdjustChannelPrice', // 即channelPrice
    label: '上次系统调整原价',
  },
  {
    prop: 'activityPrice',
    label: '上次系统调整特价',
  },
  {
    prop: 'averageStrike30',
    label: '近30天平均成交价',
  },
  {
    prop: 'minStrike30',
    label: '近30天最小成交价',
  },
  {
    prop: 'maxStrike30',
    label: '近30天最大成交价',
  },
  {
    prop: 'competeMaxSales',
    label: '竞对最高月售',
  },
  {
    prop: 'monthSales',
    label: '近30天美团销量',
  },
  {
    prop: 'salesRank',
    label: '蜂窝商品总销量排序',
    minWidth: '100',
  },
  {
    prop: 'commonGoodsRanks',
    label: '蜂窝共有商品销量排序',
    minWidth: '110',
  },
  {
    prop: 'isCf',
    label: '是否处方药',
  },
  {
    prop: 'isMarketing',
    label: '是否营销品种',
  },
  {
    prop: 'newChannelPriceProfRate',
    label: '建议原价毛利率',
  },
  {
    prop: 'newActivityPriceProfRate',
    label: '建议特价毛利率',
  },
  {
    prop: 'channelGrosProfRate30',
    label: '近30天美团毛利率',
  },
  {
    prop: 'offlineExetPriceProfRate',
    label: '线下执行价毛利率',
  },
  {
    prop: 'offlineGrosProfRate90',
    label: '线下近90天成交毛利率',
    minWidth: '110',
  },
  {
    prop: 'minPrice',
    label: '起送价',
  },
  {
    prop: 'avgDiscount',
    label: '平均折扣力度',
  },
  {
    prop: 'strategyPurpose',
    label: '策略目的',
    minWidth: '120',
    showTooltip: true,
  },
  {
    prop: 'goodsCode',
    label: '商品编码',
    disabled: true,
  },
  {
    prop: 'storeName',
    label: '门店名称',
    minWidth: '120',
    showTooltip: true,
  },
  {
    prop: 'cellularCode',
    label: '所属蜂窝',
  },
  {
    prop: 'cellularName',
    label: '蜂窝名称',
    minWidth: '120',
    showTooltip: true,
  },
  {
    prop: 'status',
    label: '状态',
    disabled: true,
  },
  {
    prop: 'remark',
    label: '备注',
    disabled: true,
    minWidth: '120',
    showTooltip: true,
  },
];

// 调价商品详情列表/调价商品复核列表-处理状态下拉列表
export const GOODS_STATUS_TYPES = [
  {
    id: 'INIT',
    name: '待审核',
  },
  {
    id: 'RECHECK',
    name: '待复审',
  },
  {
    id: 'RECHECK_SUCCESS',
    name: '复审通过',
  },
  {
    id: 'REBUT',
    name: '复审驳回',
  },
  {
    id: 'SUCCESS',
    name: '审核通过',
  },
  {
    id: 'REJECTED',
    name: '审核拒绝',
  },
];
